﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="PopularizeCompanyList.aspx.cs" Inherits="ZF.BLL.Admin.PopularizeCompanyList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style>
        .f1 { color: #3366CC; }
        .f2 { color: #f00; }
        .f3 { color: #eee; }
        .f4 { color: #339933; }
    </style>
    <%--        <!--自定义条件 开始-->
    <div class="tabHeadMenu">
    
        <a href="<%=this.ListPage %>" class='<%=(Status==-100)?"action":"" %>'>所有记录</a> <a
            href="<%=this.ListPage %>?status=0" class='<%=(Status==0)?"action":"" %>'>未审核</a>
        <a href="<%=this.ListPage %>?status=-1" class='<%=(Status==-1)?"action":"" %>'>审核失败</a>
     
    </div>
    <!--自定义条件 结束-->--%>
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending"
                    SortExpression="PopularizeId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("PopularizeId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true" Visible="false">
                </zf:TemplateField>
                <zf:TemplateField HeaderText=" " ItemStyle-Width="300">
                    <ItemTemplate>
                        <table class="tal_ w100_" style="text-align: left;">
                            <tr>
                                <td style="width: 60px; height: 60px">
                                    <img src="/photo/ads/<%# Eval("Logo")%>" style="width: 60px; height: 60px" />
                                </td>
                                <td style='word-break: break-all;'>
                                    <span style="color: #E4532B">公司名称:</span> <span class="f1">
                                        <%#Eval("CompanyName")%></span>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </zf:TemplateField>
                 <zf:TemplateField HeaderText="商家类型">
                    <ItemTemplate>
                        <%#  GetTypeName((int)Eval("TypeId"))%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="联系人">
                    <ItemTemplate>
                        <%#Eval("Contact")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="排序" SortExpression="OrderId">
                    <ItemTemplate>
                        <%#Eval("OrderId")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="添加时间">
                    <ItemTemplate>
                        <%#((DateTime)Eval("AddTime")).ToShortDateString()%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href='<%=this.ManagePage %>?ot=Edit&id=<%# Eval("PopularizeId")%>'>修改</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("PopularizeId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的<%=CTitle %></zf:LinkButton>
        <a href="<%=this.ManagePage %>?ot=AddNew">添加<%=CTitle %></a>
  
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    
</asp:Content>
